<?php

use Phinx\Migration\AbstractMigration;

class AddIsManualAdjustmentColumnInTaskTable extends AbstractMigration
{
    public function up()
    {
        $this->table("task")
            ->addColumn('is_manual_adjustment', 'enum', ['values' => 'yes,no', 'default' => 'no', 'comment' => ' 是否手动调整过'])
            ->save();


    }

    public function down()
    {
        $this->table("task")->removeColumn("is_manual_adjustment")->save();
    }
}
